package cn.edu.ctbu.dp2.constant;

public enum REnum {
    UNKNOW_ERR(-999,"未知错误"),
    COMMON_ERR(-10,"一般错误"),
    LOGIN_ERR(-2,"出错了，不正确的用户名密码"),
    QUERY_ERR(-3,"查询出错"),
    SUCCESS(1,"成功")
    ;

    private int code;
    private String msg;

    REnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public int getCode() {
        return code;
    }
    public String getmsg() {
        return msg;
    }
}
